<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'Asunto'); ?>
		<?php echo $form->textField($model,'Asunto',array('size'=>60,'maxlength'=>75)); ?>
	</div>

	
	<div class="row">
		<?php echo $form->label($model,'fecha'); ?>
		<?php 
			$this->widget('application.extensions.DateTimePicker.CJuiDateTimePicker',
				array(
					'model'=>$model,
					'attribute'=>'fecha',
					'mode'=>'date',
					'options'=>array(
								'dateFormat'=>'yy-mm-dd'
							),
					'language'=>''
				)
			);
		 ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'para'); ?>
		<?php echo $form->dropDownList($model,'para',TUtilidades::obtenerUsuarios(),array('empty'=>'--Seleccione--')); ?>
	</div>
	<div class="row">
		<?php echo $form->label($model,'de'); ?>
		<?php echo $form->dropDownList($model,'de',TUtilidades::obtenerUsuarios(),array('empty'=>'--Seleccione--')); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'leido'); ?>
		<?php echo $form->dropDownList($model,'leido',array(0=>'Nuevo',1=>'Leido'),array('empty'=>'--Seleccione--')); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Buscar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->